package day01;

/**
 * @author Jetwang
 * @version 1.0
 * @since 2023/2/27 20:57
 */
public class CircleLinkedListSentinelTest {
    public static void main(String[] args) {
        CircleLinkedListSentinel list = new CircleLinkedListSentinel();

        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(4);
        list.addFirst(5);

        list.addLast(1);
        list.addLast(2);
        list.addLast(3);

        list.removeFirst();
        list.removeLast();
        list.removeByValue(1);
        list.removeByValue(1);
        // list.removeByValue(1);

        for (Integer ele : list) {
            System.out.println(ele);
        }
    }
}
